projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4661f15
)
Fix the build with cups < 2.2.12
author
Thomas Lange
<thomas-lange2@gmx.de>
Sat, 24 Oct 2020 11:16:40 +0000
(13:16 +0200)
committer
Thomas Lange
<thomas-lange2@gmx.de>
Mon, 26 Oct 2020 18:16:26 +0000
(19:16 +0100)
PPD_CUSTOM_UNKNOWN was introduced in cups 2.3.
and has been backported to 2.2.12.
Only handle it when we build against a new enough cups.
Fixes: #2968
modules/printbackends/gtkprintbackendcups.c
patch
|
blob
|
history
diff --git
a/modules/printbackends/gtkprintbackendcups.c
b/modules/printbackends/gtkprintbackendcups.c
index b88d76011caa02da2eb7504c161e1f2e73e770d9..d499e11f9811ae0dfdd8787b6a48f0ea5b6f092a 100644
(file)
--- a/
modules/printbackends/gtkprintbackendcups.c
+++ b/
modules/printbackends/gtkprintbackendcups.c
@@
-647,7
+647,11
@@
add_cups_options (const char *key,
custom_value = TRUE;
break;
+#if (CUPS_VERSION_MAJOR >= 3) || \
+ (CUPS_VERSION_MAJOR == 2 && CUPS_VERSION_MINOR >= 3) || \
+ (CUPS_VERSION_MAJOR == 2 && CUPS_VERSION_MINOR == 2 && CUPS_VERSION_PATCH >= 12)
case PPD_CUSTOM_UNKNOWN:
+#endif
default :
custom_value = FALSE;
}